package cn.fxyz.dao.impl;

import java.util.List;

import cn.fxyz.base.impl.BaseDaoImpl;
import cn.fxyz.dao.DinnertableDao;
import cn.fxyz.entity.Dinnertable;

public class DinnertableDaoImpl extends BaseDaoImpl<Dinnertable> implements DinnertableDao {
	//通过餐桌名查询餐桌信息
	public List<Dinnertable> selectByTablename(Dinnertable dinnertable) {
		return (List<Dinnertable>) this.getHibernateTemplate().find("from Dinnertable where tablename=?", dinnertable.getTablename());
	}
	//通过餐桌状态查询餐桌信息
	public List<Dinnertable> selectByTableStatus() {
		return (List<Dinnertable>) this.getHibernateTemplate().find("from Dinnertable where tablestatus=?", 0);
	}

	
}
